<T:ViewBase x:Class="WPFExcelReport.TMIBLG02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MIMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMIBLG.MIMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MIJJJJ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMIBLG.MIJJJJ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MIMM:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMIBLG.MIMM}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MITT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMIBLG.MITT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MILO:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMIBLG.MILO}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MILB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMIBLG.MILB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MIINVBLG:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMIBLG.MIINVBLG}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MIBLGPOS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMIBLG.MIBLGPOS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MILP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMIBLG.MILP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MIAUFBKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMIBLG.MIAUFBKZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MICHAR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMIBLG.MICHAR}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsMIBLG,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwMIBLG}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwMIBLG, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="MIMANDANT"
                                    Binding="{Binding Path=MIMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIJJJJ"
                                    Binding="{Binding Path=MIJJJJ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIJJJJ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIMM"
                                    Binding="{Binding Path=MIMM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIMM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MITT"
                                    Binding="{Binding Path=MITT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MITT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MILO"
                                    Binding="{Binding Path=MILO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MILO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MILB"
                                    Binding="{Binding Path=MILB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MILB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIINVBLG"
                                    Binding="{Binding Path=MIINVBLG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIINVBLG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIBLGPOS"
                                    Binding="{Binding Path=MIBLGPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIBLGPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MILP"
                                    Binding="{Binding Path=MILP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MILP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIAUFBKZ"
                                    Binding="{Binding Path=MIAUFBKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIAUFBKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MICHAR"
                                    Binding="{Binding Path=MICHAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MICHAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIGNR"
                                    Binding="{Binding Path=MIGNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIGNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIVPEINH"
                                    Binding="{Binding Path=MIVPEINH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIVPEINH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIGEBANZ"
                                    Binding="{Binding Path=MIGEBANZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIGEBANZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MISME"
                                    Binding="{Binding Path=MISME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MISME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIIME"
                                    Binding="{Binding Path=MIIME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIIME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIINBEN"
                                    Binding="{Binding Path=MIINBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIINBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIINDAT"
                                    Binding="{Binding Path=MIINDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIINDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIAENZL"
                                    Binding="{Binding Path=MIAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIEJJJJ"
                                    Binding="{Binding Path=MIEJJJJ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIEJJJJ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIEBELEG"
                                    Binding="{Binding Path=MIEBELEG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIEBELEG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIELFDNR"
                                    Binding="{Binding Path=MIELFDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIELFDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MILJJJJ"
                                    Binding="{Binding Path=MILJJJJ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MILJJJJ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MILBELEG"
                                    Binding="{Binding Path=MILBELEG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MILBELEG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MILLFDNR"
                                    Binding="{Binding Path=MILLFDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MILLFDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIRUECKKZ"
                                    Binding="{Binding Path=MIRUECKKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIRUECKKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIMAT"
                                    Binding="{Binding Path=MIMAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIMAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIVAR"
                                    Binding="{Binding Path=MIVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIEINDAT"
                                    Binding="{Binding Path=MIEINDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIEINDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MISPSTA"
                                    Binding="{Binding Path=MISPSTA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MISPSTA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MISPGRD"
                                    Binding="{Binding Path=MISPGRD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MISPGRD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MILIEFNR"
                                    Binding="{Binding Path=MILIEFNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MILIEFNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MICHARL"
                                    Binding="{Binding Path=MICHARL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MICHARL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIGNRL"
                                    Binding="{Binding Path=MIGNRL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIGNRL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIVERFDAT"
                                    Binding="{Binding Path=MIVERFDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIVERFDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIENTDAT"
                                    Binding="{Binding Path=MIENTDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIENTDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIENTKZ"
                                    Binding="{Binding Path=MIENTKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIENTKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MILOESCHKZ"
                                    Binding="{Binding Path=MILOESCHKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MILOESCHKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MISORTKZ"
                                    Binding="{Binding Path=MISORTKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MISORTKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MIFILLER"
                                    Binding="{Binding Path=MIFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MIFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
